/**********************************************************
 * File description:SqliteDriver.h
 * Function:QPCR异常类
 * Current Version: 1.0.0
 * Author: 夏新宇
 * Date: 2022-10-01
 *  -----
 *  Copyright by BoKun Software.
 **********************************************************/
#ifndef    QPCREXCEPTION_H
#define    QPCREXCEPTION_H

#include <exception>
#include <string>
using namespace std;

class QPCRException : public exception {
    public:
        QPCRException(string errorCode, string errorMsg, string fileName, string funcName) :
            errorCode(errorCode), errorMsg(errorMsg), fileName(fileName), funcName(funcName)
        {
        }

        ~QPCRException(){
        }

        const string getErrorCode(){
            return errorCode;
        }

        const string getErrorMsg(){
            return errorMsg;
        }

        const string getFileName(){
            return fileName;
        }

        const string getFuncName(){
            return funcName;
        }


    private:
        const string errorCode;
        const string errorMsg;
        const string fileName;
        const string funcName;
};
#endif

